import Desktop from '../pages/desktop' // 工作台
import Statis from '../pages/statis' // 数据统计
import ManageCenter from '../pages/manageCenter' // 管理中心
import Tools from '../pages/tools' // 工具箱

// layout 页面
import HouseManage from '../pages/houseManage' // 房源管理
import ClientManage from '../pages/clientManage' // 客源管理
import OrderManage from '../pages/orderManage' // 订单管理

// 「房源管理」子页面
import HouseList from '../pages/houseManage/houseList' // 房源列表
import NewHouse from '../pages/houseManage/newHouse' // 新房录入

// 「客源管理」子页面
import ClientList from '../pages/clientManage/clientList' // 客户列表

// 「订单管理」子页面
import FollowOrder from '../pages/orderManage/followOrder' // 跟进订单
import DealOrder from '../pages/orderManage/dealOrder' // 成交订单

import Test from '../pages/test' // 测试页面

// 头部导航栏
const topNav = [
  {
    path: '/Desktop',
    name: 'Desktop',
    component: Desktop,
    meta: {
      icon: 'desktop',
      title: '工作台'
    }
  },
  {
    path: '/Statis',
    name: 'Statis',
    component: Statis,
    meta: {
      icon: 'home',
      title: '数据统计'
    }
  },
  {
    path: '/Tools',
    name: 'Tools',
    component: Tools,
    meta: {
      icon: 'team',
      title: '工具箱'
    }
  },
  {
    path: '/ManageCenter',
    name: 'ManageCenter',
    component: ManageCenter,
    meta: {
      icon: 'team',
      title: '管理中心'
    }
  }
]
// 左则导航栏
const leftNav = [
  {
    path: '/HouseManage',
    name: 'HouseManage',
    component: HouseManage,
    meta: {
      icon: 'home',
      title: '房源管理'
    },
    children: [
      {
        path: '/HouseList',
        name: 'HouseList',
        component: HouseList,
        meta: {
          icon: 'home',
          title: '房源列表'
        }
      },
      {
        path: '/NewHouse',
        name: 'NewHouse',
        component: NewHouse,
        meta: {
          icon: 'home',
          title: '录入房源'
        }
      },
      {
        path: '/ComHouse',
        name: 'ComHouse',
        component: Test,
        meta: {
          icon: 'home',
          title: '公司房源'
        }
      },
      {
        path: '/PlatHouse',
        name: 'PlatHouse',
        component: Test,
        meta: {
          icon: 'home',
          title: '平台房源'
        }
      }
    ]
  },
  {
    path: '/ClientManage',
    name: 'ClientManage',
    component: ClientManage,
    meta: {
      icon: 'team',
      title: '客源管理'
    },
    children: [
      {
        path: '/ClientList',
        name: 'ClientList',
        component: ClientList,
        meta: {
          icon: 'home',
          title: '客户列表'
        }
      }
    ]
  },
  {
    path: '/OrderManage',
    name: 'OrderManage',
    component: OrderManage,
    meta: {
      icon: 'search',
      title: '订单管理'
    },
    children: [
      {
        path: '/FollowOrder',
        name: 'FollowOrder',
        component: FollowOrder,
        meta: {
          icon: 'home',
          title: '跟进订单'
        }
      },
      {
        path: '/DealOrder',
        name: 'DealOrder',
        component: DealOrder,
        meta: {
          icon: 'home',
          title: '成交订单'
        }
      }
    ]
  }
  // {
  //   path: 'house',
  //   name: 'House',
  //   component: House,
  //   leftNavShow: true
  // },
  // {
  //   path: 'about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../pages/About.vue')
  // }
]

export default {
  topNav,
  leftNav
}
